import request from '@/utils/request'

//获取资源
export function getResources(payload) {
    const params = payload
    return request({
      url: 'api/resources',
      method: 'get',
      params
    })
  }
  //创建资源
export function getAddResources(payload) {
    const data = payload
    return request({
      url: 'api/resource',
      method: 'post',
      data
    })
  }